package cn.itcast.nems.oldems.dao.mapper;

import cn.itcast.nems.oldems.dao.dataobject.PaymentOrderDO;
import cn.itcast.nems.oldems.dao.entiry.PaymentOrder;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 老EMS线上支付流水 Mapper
 * </p>
 *
 * @author zhouwei
 * @since 2024/2/22 10:44 AM
 **/
@Mapper
public interface PaymentOrderMapper extends BaseMapper<PaymentOrder> {
    /**
     * 根据创建时间查询线上支付流水
     * @param createdTime 创建时间
     * @param historyIds 历史出现异常的 payment_oder  id
     * @return 线上支付流水 ，没有数据则返回 null
     */
    @InterceptorIgnore(tenantLine = "true")
    List<PaymentOrderDO> findListByCreateTime(@Param("createdTime") Date createdTime ,@Param("historyIds") List<String> historyIds) ;
}
